let express = require('express');
let router = express.Router();
const {
  hasAuth, auth
} = require('../controllers/index')
const {
  register, list, remove, creator, login, logout
} = require('../controllers/user')

router.get('/hasAuth', hasAuth)

router.get('/logout', auth, logout)

router.post('/login', login)

router.delete('/remove', auth, remove)

router.post('/register', auth, register);

router.get('/list', auth, list);

router.get('/creator', creator)

module.exports = router;
